fix function name letter case, check email whitelist on login