adding error messages for forms