else if change, removed unnecessary database method

Changed if to elseif  so that multiple views will not load when only
one should be viewed. Also, removed unnecessary load->database from
login model