Moved createUser code from Widget to Logic class