created a check to see if duplicate user is logged in