Add form validation and change icon