working on fixing validation error bugs