fixing login/signup so that redis doesnt makes multiple entries on subsequent logins