checked for non zero sum
server side set up for login
synced up with kiske