Adding basic login and logout bits + decorator