This reverts commit 29501d7426. Actually this is correct place to ask user for password, as it is handled server side. It's bit modified to build, will need also some integration with authentication.c to check if password is correct.
29501d7426