add datablock check to login function