moved user_find_by_hash to User model class (User.find_by_hash), added specs for new model class method