adding register_blog function