login and verification bugfixes