generating login view