Dev

Adds login functionality which can be toggled on and off in the settings file. Decorators have been added to do the checks depending on the toggle.