Fixing validation error