Added login checker for teacher