Fixed the "messages" depracated error

The user.messages_set is deprecated and the django messages framework should be used instead.