adding in function for Registration