Fixed bug with checking for password= function