refactor #delete_project to handle improper input