stiff
added login function