Modified global variables, processPayment, Register, addStudent

Added global variables, modified processPayment with validation, modified Register with validation, modified addStudent with validation