Added the error handling to the admin and the user parts and fix some web redirections