Small backend changes to facilitate ajax register form