Added username/password checking method