fixed schema of check_password