Redirect the home page and changed the profile button

The home page would redirected to the register page if the user is not
logged in, else it would redirect them to the map page.

Also changed the profile link using jquery