Added tests for user login