regStudent functions, it adds data to database, however it there is error with reference number...to be discussed and fixed