Passwords: Fix for validation of cost 31 [Closes #2][Closes #4]