Added the backend for Group Registration page.

Signed-off-by: Vidhant Maini <vidhant_14@hotmail.com>

Updated error display in group registration.
Added redirection to homepage on successful group registration.
Fixed coding-style.

Signed-off-by: Vidhant Maini <vidhant_14@hotmail.com>