Add method to handle POST