Creating base view containing "username" logic for views.