Fix function_clause crash that occurs when attempting to authenticate with an invalid type of salt or password.