passport fixes, error page redirect