Added error handling to project submission