an example on consolidating logic in the steamlogin function

This is just a quick example on consolidating the logic in the steam login function.