Modified the login route to check empty emails