Created login and logout actions and tests