Trying to redirect to home page when registering