Functionality of Create Appointment