Refactor names and stfuf in login.cpp