Fixed bug with registration form.