what was andrew jacksons career before he became president?