Checking if id is null
Changed redirection to use phoneNumber