SDN + Login fix

SDN and login fixed, cleaned up alot of un-used imports and such