code for registartion