Set the username properly either via flask.g or by the argument given