Fix for register form. Fixes #25.