modified user class and session class