form login implementation improvements