Adding a login_required before action, gets rid of some issues