Refactor some password functions and user playlists