created functionality in webpage to create groups, redirect once created not working however