Keyring: use regex for email check. Fix exception if userid does not contain an email address.