Add security, modify location tables, add login and logout