Forgot to commit. Change of error handling now with session