Use session to include messages in register page
Add the exception case with sessions