Changed passwordLength to passwordHashLength in checkHash to be more descriptive as what it holds