fixed login errors due to unicode string type and missing field in json data