Should redirect to login page in case of any error