Adds start of login/logout functionality