Added 'only_public' flag
Added password hashing