Added password checking.