Hi Aauniverse,
For this you need to use form Forms Authentication. Put your GridView in the landing page and check the user is already logged or not. If user not logged in then redirect the user to login page. If logged in then precede further to insert the rating in Database.
For details about login refer below article.