Add basic legacy login

Add initial setup/context and first login feature to login to administration interface
should these rather be part of the array? if it is because of join order you can instead change the join order as opposed to doing +=.