first off check battery bolts with 10mm wrench. You hand will lie to you so use the wrench.
If bolts are tight ride it to a battery store and have them check battery 6 years old it might be dieing.
If none of that is bad then I would rent a fuel pump tester and check yours 49 psi and over is good.
If thats good pull dash panel and check wires going into ing switch. Even pull them and put some grease on them.
Keep us updated please
Please add your state and model of bike you have. Click user CP @ top of page and then far left click edit signature. Thanks