added devise functionality - fully working