tried to fix login error by ensuring that all emails are lowercase when authenticated