Forgot to uncomment javascript code for redirection to registration page