If your requirement is to enable a custom login form to let the user login to the AEM website, the simple option isCreate a Login form with the below input fieldsname="j_username"name="j_password"Submit the form data to /system/sling/login/j_security_check endpoint,Sample form from WKND website - re...