fixed non-functional form title
added a js condition to allow redirection on success