fixing password authentication issue