fixed login bug and added logic to prevent unauthorized user editing
added public/system/* to gitignore