Fixed bug with user login