XF 1.4 Login page

I have made a simple landing page for my site. On the landing page I want to use an icon as a link to the login page for the Xenforo forum. When I do this it works except after the user logs in they are pushed back to the landing page. Clicking on the icon does nothing after logging in. If you manually enter the forum address then you will reach the forum and are logged in. Is there any way to make this work?

For example my landing page is www.mysite.com
On the landing page is a icon that is linked to www.mysite.com/community/login

The site is a private site and unregistered users have no permissions allowed. Up until now I haven't used the login page but I don't like seeing the error page when a user clicks on the icon. Is there a way to correct this and still keep the site entirely private?