Adding check for zero-length password in authenticate and test case.