setup for login logout of a user