created function show_entries() for rendering entries and add_entry() fo r creating new entry if user is logged in