Fixed checking password