fixed password authentication function