Login and Logout script change