Added validation to user before creation