added code for registration