added auth with pw encrytion