Updating the controller to accept post requests.