fix error message display when loading study files

the ajax post wasn't letting the page refresh correctly
Can you change the indentation to be 2 spaces for all these lines?