fixing issue with multiple logins being added