checking for session