Fixed second login errors