created log in/out feature