oops - school boy error, I have amended that.
However that isn't the problem. I echoed the recordset to make sure I was getting results - and I am but when I submit the form I just get the error validation. The form never submits even though I am using a matching password.