[REV]Change login/regiter logic on exam system