Added validation to user creation