theme update and login logic