tested error handling for futur login redirect