Autologin fix, reload added, exception handling added

Autologin fix, reload added, exception handling added