Tests: Replace redundant code with function call.
Users: Redirect sign-up to root if user already signed in.