Added basic login functionality with username and email