users are redirected to homepage after registering and users are redirected to dashboard after editing their profile