extracted error message in helper to helper method