-added error message when not logged in