redirects user to homepage after registration