made loginview into a dialog