Messages update

Changed messages to message (as it only returns one) so you will have to update all your views where you are calling it as I have done in login.

I create another function called messages which returns all the message should you want to do additional looping in your view.