Rewrote register_post.php