Implemented the server side code of CSRF token