saving username, reloading after authentication