animation for validated fields and error icon for button