backend login repaired with new data entities