Clean up error handling and add form parsing.