Wrote and passed test for user logging in