Fixed Devise with Rails4 issue