fixed bug in verify login method