a pathetic attempt to get the loginview working.