Fix the setting of the loginname param