Added login/logout

And started working on the admin funtionality