modify login view to adapt js