login data being set incorrectly