enter and validation