finish devise implementation