validation for solution seems to work

didn check it thoroughly yet