Added a first draft of login functionality, still missing the actual security stuff