text: import isEmail from 'validator/lib/isEmail'
  
  export const required = value => !value && 'This field is required'
  export const minLength = min => value => value.length < min && `Must be ${min} characters or more`
  export const maxLength = max => value => value.length > max && `Must be not more ${max} characters`
  export const validEmail = email => !isEmail(email) && 'This email is invalid'
  export const samePassword = (confirmPassword, password) => confirmPassword !== password && 'This password is different'
  