Refactoring of user profile (editor, doc, etc) validation to use app profile. #59