Casting for password verification, fixing error on request