Cleaned login code and added prompt when email or password is wrong when logging in.