7.3.3 Signup error messages

As a final step in handling failed user creation, we’ll add helpful
error messages to indicate the problems that prevented successful
registration. Conveniently, Rails automatically provides such messages
based on the User model validations. For example, consider trying to
save a user with an invalid email address and with a password that’s too
short: