-- updated UserProfile.init to accept a hash