added user login validation for comments