Extract shared constants between User and SignUp validations.

Closes #8.