added a variable for login status