This function will be used to run code after the login navigation finishes, to avoid collisions when doing extra navigations