Added user validation and creation