Refactor the user model embed authentications.