Minor fix in login check :p