fixed url redirection bug with register