A bunch of fixes for the server. Fixed registration form.