Added User::generate_pass() for random password generation