Added toggle functionality to the registration form.