Minor fix onLogin