added better checking for returned response in User Object