start to refactor registration forms