basic form validation directive
better validation, working alert directive