implementation code: redirect authenticated users to home page when they hit register page