basic validation works