login working but not persistent