Trying to fix login issue sending object through