adding validations for session types