ajax request for getting user messages now works fully