Added error handling and fixed a bug with spaces in project names and saving on the detail page.