added initial functionality of registration module