improved functionality for /create and create_account function