trying to fix returned data on login