The Human Rights Act and mental health legislation