add password method