fix a method for nil class error
new style of top-nav-bar, log-in and sign-up page