Added Devise functionality