Switched methods to doPost()