connected registration UI to backend