correcting if/else switch for users with a session