Mac asking for username and password on starting up

Solution 1:

Go to System Prefs -> Users & Groups and make sure the Display login window as: list of users is set as shown below in the Login Option tab on the bottom left.

Login options