Depends on how you want to implement the login. Should there be a single working set of account credentials only or is it actually based on some sort of online database?
And yea as already mentioned you can use the Injection library by Jason for injecting the cheat.