Correcte a mistake

login.tolowercase -> login.toLowerCase
Cut function requiredAuthentication & requiredConsistentID