fixed bug in step 3 profile and redirection issues and template