implementation of register validation