added tests for logging in