completed full registration functionality