added tests for user login