allow customized password length validation

Allow to use dynamic settings in Devise.setup, this is useful for multitenant app, example :
in initializers/devise.rb
{code}
 Devise.setup do |config|
  config.password_length  = Proc.new { Company.current.try(:password_regex) }
 end
{code}