added password functionality