MDL-41115 allow users to login with email instead of username