How to register for a tournament?

Register in a tournament through Website or through client after clicking on the tournament on lobby.