Adding validations to $register