added Devise functionality