Changed error messages from alerts to modal dialogs

Also fixed errors on game page when logged out