obtain id from table and use for profile.jsp