login / register / refactor