Fixes bug with validateOldPassword