diff --git a/src/pages/sign-in-and-sign-up/SignUp.jsx b/src/pages/sign-in-and-sign-up/SignUp.jsx index 01e23ba..9fd9eb7 100644 --- a/src/pages/sign-in-and-sign-up/SignUp.jsx +++ b/src/pages/sign-in-and-sign-up/SignUp.jsx @@ -48,14 +48,14 @@ class SignUp extends Component { errors[id] = 'Field is required'; } if ((id === 'confirmPassword' && value !== this.state.password) || (id === 'password' && value !== this.state.confirmPassword)) { - errors['confirmPassword'] = 'Password don\'t match'; + errors['confirmPassword'] = 'Password does not match'; } if (id === 'password' && !(value.length > 6)) { - errors[id] = 'Password needs to have between x and y characters'; + errors[id] = 'The password should be at least 8 characters long'; } if (id === 'email' && !value.match(/^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z{|}~])*@[a-zA-Z](-?[a-zA-Z0-9])*(\.[a-zA-Z](-?[a-zA-Z0-9])*)+$/)) { - errors[id] = 'Email adress is not valid'; + errors[id] = 'Email address is not valid'; } } return errors;