add Hugh's validation in user model