fixed view to use email instead of username for login