correct error that appears when closing the log in