added a method for fetching a user's id, now fetching the user id of the user upon login and registration