Worked on registration - function