To setup phone lock in your Nokia Asha 501 you should follow the steps mentioned below:-
1. Go to Settings on your phone. 2. Select the phone lock option. 3. Go to security code. 4. Enter the security code as 12345 as it's the default security code provided in every Nokia device. 5. Enter the security code twice and after that the security keypad will get activated.