added password managing functions