final staff servlet template and password encoding