added in javascript so the login and register links will toggle