added initial code for registration of users