The Design and implementation of a double layered Security Network with an Authentication System through Block chain Technology