Fixed critical Devise error and some views