5. A current or past history of major depressive disorder with psychotic features, bipolar disorder, schizophrenia or other psychotic disorder, mental retardation, or mental disorder due to a general medical condition.