adding new authorization hooks and prototype form validation