before user model