moved error redirect to correct view