added login, user selection and logout