Minor fix for user login