added javascript validation to registro medico