fixed issue with second login