added a login and logout script