Fixed member authentication so users are required to login before adding to the database.
Added logout link.