This can be done by opening the "User" Section and enable "User Authentication".
Next enable the option "Users need to login before they can use the app".