Wrong condition for DB password usage