Validates right angled triangles