added basic devise functionality