Moved user helper methods from the users_helper to user model