Updated dialog message
Additional (incomplete)logic to support student registration
sending csrf token with ajax post