added msg sending functionality for users