added basic login stuff kept example for reference