fixed the login problem that caused the cant convert name in currentUser to a string
error