Login functionality now works