Revert "Revert "clientHandler for auth& register""

This reverts commit 5dbcbbc5d2afb0878f243ea0dcd698d6597cef19.