small change to make redirection work on register form