Added activate function to user page