simple register data validation and animation if fields are incorrect