Implement post method for pastetype and userprofile controller.