Implemented creating and saving a post securely