user not found error handled in api login