next to give error message and have session