Added name validators
Fixed setState()