handling user sign in for links on the server side
switched send() and hide() so that modal closes
cleaned up routes