login accepting username and email