further npe checks
display proper error in edit account details if jid is invalid