login funct added to my_model, additional config