Adds login and logout