preparing login form