Adds extra validation for screenname service.
Adds csrf token middleware.