Added is_published method to blog model