Why error message is fixed and its not updating depending on validation type error.