Fixed some stuff which triggered 'Notice' warnings in the logs
Fixed issue #209 a bug which prevented new user from being invited to groups or sponsors