Added Function to Register a Student to Course