change template of form loging, get params, and find user, and destroy session