Use different way for validation in user model