modified postcontroller and routes

modified postcontroller and routes