Adds some model validation tests to User model.