Model code for loggin in a model test code.