nick validation function, and fixed a typo