removed the public/index and removed the authentication before controller action just in case the problem is with that