admin and login pages have javascript validation for forms