add devise support but login view has bugs