added helper for make errors without using validator