Added 'remember me' & fixed mysql disconnect