committing changes for user login and logout