New password checking functions