Small refactoring on user model.