modified check for Login and Password fields - Joomla2.5