fixed bug that password check don't work