Fixed incorrect handling of non-registered users login
Authored by: artyom-beilis 2011-01-01
Parent: [r1609]
Child: [r1611]