Fixed security breach allowing anybody to edit file
Added errorpage