<% if user_signed_in? %>
<div id="log_out">
<%= link_to('Logout', destroy_user_session_path) %>
</div>
<% else %>
<div id="log_in">
<%= link_to('Login', new_user_session_path) %>
<% end %>