improving script to create user