Wrote test for user login