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