Added checking for deadline when sending homeworks by student