added score, fixed validation