Now detects username if logged in, otherwise substitutes with 'anonymous' upon DB submission