login now properly changes view