Fixing password validation