Add functions check passwords and calc salt.