1 sessions login logout logic