The relationship among mental health, resilience and happiness