added a check for mistakes in urlFor