spec to test user loging