fixed authorize javascript and form fields