Fixed onClick function

New user must complete their profile detail first before accessing to a
new page