added errors, need to fix password auth