Use constants from controller and redirect on errors to right page