fixed bug according to https://github.com/phatworx/devise_security_extension/commit/9cce75200f879388189eea268802dd3ef4c0ceff