Bug: user registration form does not register users because
of internal server error

Change-Id: Ia10d3655c5e1ee0b9bb692e8b60f66ed8db79c88