functioning login/logout and registration; support for showing ads to opted-in users