Made corrections to log in/out feature