Add function to login for username / email