onkeyup rather than onkeypress should work for realtime form validating