Created custom directives for input validation and disabling form buttons