Added behavior to check if study is active before displaying log in/out info