added another validation to registration