working erb for sign in and sign out logic