Add integration test for logging in/out. Add unit test for user validations.