Fix passing category to login required message

The previous code would make the message appear as 

```
('Please log in to access this page.', 'info')
```

Now it's

```
Please log in to access this page.
```

and the category is passed from the list in core.py.