Fixed redirects in case of bad values given