Login fine-tune and Permission reset