added login logout facilities