The first command tells the device to refer to a locally defined username (with associated password unique to that user) to authenticate logins.
The second one says to refer to the common enable password.
I believe the corect syntax in both cases is "aaa authentication login local (or enable)"