Added state to edit listing and more data validation.