code validation form fix