fix bug

function is called incorrectly. fixed the bug
add some methods

add signInForm method and changed constructor