Added animation for error message