Refactoring Register/Login/Logout to UserAwareHandler