Encrypting password using sha1