removed unused require
extraced creation of user
introduced main