added methods to user model: