created a path login view to main view