Added if statement to remove logout button from login screen