fixed local/live login