Added Validations and animations to display error message