Add generic error handler, add missing script to login screen