When form is loaded it redirects to "undefined?" page error. 404 error