added some user validation