How can I create a working registration form that works?