add activation function for hidden layer to the network