Fixed the error with second login