Fix for secondary login