It looks as if the the Sha1 is added to the insert...I think the issue lies with the login - which - you want to be sure that you are applying the Sha1 encryption to the password's POST value on the login page BEFORE comparing values to the password of the database. On the authenticate user behavior, you should be able to access Sha1 in the dialogue box to apply to the password value.
Cheers,
Brian