Added better routing for creating new blogpost. Refactored code. Added security features for creating blogposts.