Made several changes into input checking and fixed transitivity bugs. Next task: fix bug with being student/coach of master