complete login/out controls