Added redirect to main chatroom page whenever a user is registered successfully.