Added function to register new users and identify users