tested happy and unhappy path for login