added ide specific files to gitignore and added security conditions on update course controller