Put conditional statements for secure server