created methods for updating password and metadata