cleaned up the logic of the send_feedback and fixed the flash error msg