handle_post simplified