added sign in and log out feature