Registration and chat system

I’m looking for a system that can handle registrations, logins, and proximity chat. Preferably where all chat is logged but that isn’t important.

By proximity chat I mean chat that only players within a set range can see what is said.

As this is more a test of concept and to learn I would prefer it to be free. No need for commercial license etc…