Add registration form functionality (work in progress)