Bug fixes for bcrypt implementation. Works for Golden Path testing.