Added logout button and helper_method