Solved the wrong login problem.  is now checked with !== operator, not with isset().