log in mechanism functioning