Fix for issue #5431

See for reference: https://github.com/plataformatec/devise/blob/master/lib/devise/models/confirmable.rb

Lines 70-79 - the validation step is skipped under certain circumstances. And ```:generate_password``` is called as ```before_validation``` handler.