added password authenticatin