Fix bug with executing command upon successful auth