Added boolean to check if log in was successful