bootstrapped login and cleaned up code