Revamped access functions so that you can login with username/password