Fixing login bugr