check if user input username or email for login