new schema registration and login fix