Added 'get_valid_slug' in category_model and used that at other two places.