CHANGED:applied the loginModal view functions