test and implement login for commenting