Checking code to authenticate user of LMS.