refactor relationship for signup/login/logout