added UUID validation to safeuard against empty UUID entry into database.  Non-signed in users will be redirected to login if db is called and UUID is not set