Added very rudimentary login and logout