Fixed checking password bug