modification for registration of user