added password authintication to model