$(document).ready(function() {
	$("div.plugin_users_login .form_button").click(function() {    
		$("div.plugin_users_login form").validate({ 
			meta: "validate",
                        messages: {
                                users_login_username: { 
				    required: "Il campo &egrave; obbligatorio"
				},
                                users_login_password: { 
				    required: "Il campo &egrave; obbligatorio"
				}
			},
                        errorElement: "p",
                        errorPlacement: function(error, element) {
				error.appendTo( element.parent("div"));
			},
                        showErrors: function(errorMap, errorList) {
				this.defaultShowErrors();
			}
		});
		$("div.plugin_users_login form").submit();
	 });       
});
