redo login view structure