fix class User call with import
add handling error from api exception