supply login function