updated prior login, post login, logout element checking